package ModelLayer;

/**
 * Write a description of class Copy here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Copy
{
    // instance variables - replace the example below with your own
    private long id;
    private long serialNumber;
    private String purchaseDate;
    private String purchasePrice;

    //Is lent out bool 
    private boolean isLentOut = false;

    /**
     * Constructor for objects of class Copy
     */
    public Copy(long id, long sn, String pd, String pp)
    {
        this.id = id;
        this.serialNumber = sn;
        this.purchaseDate = pd;
        this.purchasePrice = pp;
    }
    /**
     * returns id
     * @return long id
       */
    public long getID()
    {
        return id;
    }
    /**
     * returns serialNumber
     * @return long serialNumber
       */
    public long getSerial()
    {
        return serialNumber;
    }
    /**
     * returns purchaseDate
     * @return 
       */
    public String getDate()
    {
        return purchaseDate;
    }
    /**
     * returns purchasePrice
     * @return String purchasePrice
       */
    public String getPrice()
    {
        return purchasePrice;
    }

    /**
     * sets serialNumber
     * @param long sn
       */
    public void setSerial(long sn)
    {
        serialNumber = sn;
    }
    /**
     * sets purchaseDate
     * @param String pd
       */
    public void setDate(String pd)
    {
        purchaseDate = pd;
    }
    /**
     * sets purchasePrice
     * @param String pp
       */
    public void setPrice(String pp)
    {
        purchasePrice = pp;
    }
    
    /**
     * Sets isLentOut
     * @param boolean bool
       */
    public void setIsLentOut(boolean bool)
    {
        isLentOut = bool;
    }
    /**
     * sets isLentOut
     * @return boolean isLentOut
       */
    public boolean getIsLentOut()
    {
        return isLentOut;
    }
}
